﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Share/MainMenu2.Master" AutoEventWireup="true" CodeBehind="fInvoice.aspx.cs" Inherits="MixScriptWeb.Jideco.SD.fInvoice" %>
<%@ Register Src="~/control/MixScriptTB.ascx" TagName="baseTextBox" TagPrefix="mix" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
    function EndRequestHandler(sender, args) {
        jQuery('.datepicker').datepicker({ dateFormat: 'dd-mm-yy' });
    }
    </script>
    <div style="padding-left: 10px;">
        <h2 class="jquery_tab">
            Commercial Invoice</h2>
            <br />
        <asp:ScriptManager ID=ScriptManager1 runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID=UpdatePanel1 runat="server">
        <Triggers > 
         <asp:PostBackTrigger ControlID="btnSave" />
        </Triggers>
            <ContentTemplate>
                <asp:MultiView ID="MultiView1" runat="server">
                <asp:View ID=vwFilter runat="server">
                <br />
                        <table class="table-ui" style="width: 100%;">
                            <tr>
                                <td style="width: 268px;">
                                    Customer</td>
                                <td style="width: 5px;">
                                    :
                                </td>
                                <td style="width: 1273px;">
                                    <mix:baseTextBox ID="txtSupplier" runat="server" AllowNull="True" isvalid="True" 
                                        ReadOnly="True" showFind="True" tooltip="This Field Cannot be empty" 
                                        tWidht="200" />
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 268px;">
                                    Delivery Date</td>
                                <td style="width: 5px;">
                                    :
                                </td>
                                <td style="width: 1273px;">
                                    <asp:TextBox ID="txtDate" CssClass="input-small datepicker" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                        <br />
                        <table class="table-ui" style="width: 600px">
                            <tr>
                                <td style="height: 26px;">
                                    &nbsp;
                                    <asp:Button ID="btnNext" runat="server" CssClass="button" Text="Next" 
                                        Width="101px" onclick="btnNext_Click" />
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    <asp:Button ID="Button2" runat="server" CssClass="button" Text="Create DN" 
                                        Visible="False" Width="101px" />
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    <asp:Button ID="Button3" runat="server" CssClass="button" Text="Clear" 
                                        Visible="False" Width="101px" />
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px; width: 4px;">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                        <br />

                    </asp:View>
                    <asp:View ID=vwGR runat="server">
                    <br />
                    <br />
                        <table class="table-ui" style="width: 100%;">
                            <tr>
                                <td style="width: 268px;">
                                    Invoice No</td>
                                <td style="width: 5px;">
                                    :
                                </td>
                                <td style="width: 1273px;">
                                    <mix:baseTextBox ID="txtInvNo" runat="server" AllowNull="True" isvalid="True" 
                                        ReadOnly="True" showFind="False" tooltip="This Field Cannot be empty" 
                                        tWidht="200" />
                                </td>
                            </tr>
                            <%--<tr>
                                <td style="width: 268px;">
                                    Dlv Order No</td>
                                <td style="width: 5px;">
                                    :
                                </td>
                                <td style="width: 1273px;">
                                    <mix:baseTextBox ID="txtDONo" runat="server" AllowNull="True" isvalid="True" 
                                        ReadOnly="True" showFind="False" tooltip="This Field Cannot be empty" 
                                        tWidht="200" UpperCase="True" />
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 268px;">
                                    PO NO</td>
                                <td style="width: 5px;">
                                    :</td>
                                <td style="width: 1273px;">
                                    <mix:baseTextBox ID="txtPONo" runat="server" AllowNull="True" isvalid="True" 
                                        ReadOnly="True" showFind="False" tooltip="This Field Cannot be empty" 
                                        tWidht="200" UpperCase="True" />
                                </td>
                            </tr>--%>
                        </table>
                        <br />
                        <table class="table-ui" style="width: 600px">
                            <tr>
                                <td style="height: 26px;">
                                    &nbsp;
                                    <asp:Button ID="btnSave" runat="server" CssClass="button" Text="Save" 
                                        Width="101px" onclick="btnSave_Click" />
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    <asp:Button ID="btnCreateDN" runat="server" CssClass="button" Text="Create Invoice" 
                                        Visible="False" Width="141px" onclick="btnCreateDN_Click" />
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    <asp:Button ID="btnCLear" runat="server" CssClass="button" Text="Clear" 
                                        Visible="False" Width="101px" />
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px; width: 4px;">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                        <asp:Panel ID=Panel1 runat="server" ScrollBars="Auto" Width="100%">
                        <asp:GridView ID="gvdetail" runat="server" CssClass="gridview" 
                            OnRowDataBound="gvdetail_RowDataBound" AllowPaging="True" AutoGenerateColumns="False" 
                            
                            >
                            <AlternatingRowStyle CssClass="alt" />
                            <Columns>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="cbAll" runat="server" AutoPostBack="True" 
                                            OnCheckedChanged="cbAll_CheckedChanged" />
                                    </HeaderTemplate>
                                    <%--<EditItemTemplate>
                                        <asp:CheckBox ID="cbitem" runat="server" />
                                    </EditItemTemplate>--%>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="cbitem" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8px" />
                                </asp:TemplateField>
                            </Columns>
                            <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
                            <FooterStyle CssClass="ft" />
                            <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
                        </asp:GridView>
                        </asp:Panel>
                        
                        <br />

                    </asp:View>
                </asp:MultiView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
